package com.juyu.reader.pc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.juyu.reader.pc.dao.OrderDao;
import com.juyu.reader.pc.model.Order;

@Service
public class OrderService {
	@Autowired
	public OrderDao orderDao;

	public List<Order> findOrder(Order order) {
		return orderDao.findOrder(order);
	}

	public int countOrder(Order order) {
		return orderDao.countOrder(order);
	}

	public List<Order> findOrderByNo(Order order) {
		return orderDao.findOrderByNo(order);
	}

	public int insertOrder(Order order) {
		return orderDao.insertOrder(order);
	}

	public int updateOrder(Order order) {
		return orderDao.updateOrder(order);
	}

	public int deleteOrder(Order order) {
		return orderDao.deleteOrder(order);
	}
}
